package com.situ.skymallproductapi.service;

import com.situ.model.ProductCategory;
import com.situ.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "skymall-gateway", contextId = "product-category-api")
public interface CategoryFeignService {
    @GetMapping("/api/v1/productCategories/id/{id}")
    ResponseEntity<JsonResult<ProductCategory>> getById(@PathVariable Integer id);
}
